home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / librw / RWTPtrMap.z / RWTPtrMap
Encoding:
Text File  |  2002-10-03  |  23.9 KB  |  595 lines

  1.  
  2.  
  3.  
  4. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  5.  
  6.  
  7.  
  8. NNNNaaaammmmeeee
  9.      RWTPtrMap<K,T,C> - Rogue Wave library class
  10.  
  11. SSSSyyyynnnnooooppppssssiiiissss
  12.               #include <rw/tpmap.h>
  13.           RWTPtrMap<K,T,C> m;
  14.  
  15.  
  16.  
  17. SSSSttttaaaannnnddddaaaarrrrdddd CCCC++++++++ LLLLiiiibbbbrrrraaaarrrryyyy DDDDeeeeppppeeeennnnddddeeeennnntttt!!!!
  18.  
  19.  
  20.  
  21.      RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp requires the Standard C++ Library.
  22.  
  23.  
  24. DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  25.      This class maintains a pointer-based collection of associations of type
  26.      ppppaaaaiiiirrrr<<<<KKKK**** ccccoooonnnnsssstttt,,,, TTTT****>>>>.  The first part of the association is a key of type
  27.      KKKK****, the second is its associated item of type TTTT****.  Order is determined by
  28.      the key according to a comparison object of type CCCC.  CCCC must induce a
  29.      total ordering on elements of type KKKK via a public member
  30.  
  31.               bool operator()(const K& x, const K& y)
  32.  
  33.  
  34.      which returns ttttrrrruuuueeee if xxxx and its partner should precede yyyy and its partner
  35.      within the collection.  The structure lllleeeessssssss<<<<TTTT>>>> from the C++-standard
  36.      header file <<<<ffffuuuunnnnccccttttiiiioooonnnnaaaallll>>>> is an example.  Note that keys will be
  37.      dereferenced before being compared.  RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> will not accept a
  38.      key that compares equal to any key already in the collection.
  39.      (RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> may contain multiple keys that compare equal to
  40.      each other.)  Equality is based on the comparison object and not on the
  41.      ======== operator.  Given a comparison object ccccoooommmmpppp, keys aaaa and bbbb are equal if
  42.  
  43.               !comp(a,b) && !comp(b,a).
  44.  
  45.  
  46.  
  47. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
  48.      Isomorphic.
  49.  
  50. EEEExxxxaaaammmmpppplllleeeessss
  51.      In this example, a map of RRRRWWWWCCCCSSSSttttrrrriiiinnnnggggs and RRRRWWWWDDDDaaaatttteeees is exercised.
  52.  
  53.               //
  54.  
  55.  
  56.  
  57.               // tpmap.cpp
  58.           //
  59.           #include <rw/tpmap.h>
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  71.  
  72.  
  73.  
  74.           #include <rw/cstring.h>
  75.           #include <rw/rwdate.h>
  76.           #include <iostream.h>
  77.           #include <function.h>
  78.           main(){
  79.             RWTPtrMap<RWCString, RWDate, less<RWCString> > birthdays;
  80.             birthdays.insert
  81.              (
  82.                new RWCString("John"),
  83.                new RWDate(12, "April", 1975)
  84.              );
  85.             birthdays.insert
  86.              (
  87.                new RWCString("Ivan"),
  88.                new RWDate(2, "Nov", 1980)
  89.              );
  90.             // Alternative syntax:
  91.             birthdays[new RWCString("Susan")] =
  92.               new RWDate(30, "June", 1955);
  93.             birthdays[new RWCString("Gene")] =
  94.               new RWDate(5, "Jan", 1981);
  95.             // Print a birthday:
  96.             RWCString key("John");
  97.             cout << *birthdays[&key] << endl;
  98.             return 0;
  99.           }
  100.           Program Output:
  101.           04/12/75
  102.  
  103. RRRReeeellllaaaatttteeeedddd CCCCllllaaaasssssssseeeessss
  104.      Class RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> offers the same interface to a pointer-based
  105.      collection that accepts multiple keys that compare equal to each other.
  106.      RRRRWWWWTTTTPPPPttttrrrrSSSSeeeetttt<<<<TTTT,,,,CCCC>>>> maintains a pointer-based collection of keys without the
  107.      associated items.  Class mmmmaaaapppp<<<<KKKK****,,,,TTTT****,,,,ddddeeeerrrreeeeffff____ccccoooommmmppppaaaarrrreeee<<<<CCCC,,,,KKKK,,,, aaaallllllllooooccccaaaattttoooorrrr>>>> >>>> is the
  108.      C++-standard collection that serves as the underlying implementation for
  109.      this collection.
  110.  
  111. PPPPuuuubbbblllliiiicccc TTTTyyyyppppeeeeddddeeeeffffssss
  112.               typedef rw_deref_compare<C,K>                  container_comp;
  113.           typedef map<K*,T*,container_comp, allocator>   container_type;
  114.           typedef container_type::size_type              size_type;
  115.           typedef container_type::difference_type        difference_type;
  116.           typedef container_type::iterator               iterator;
  117.           typedef container_type::const_iterator         const_iterator;
  118.           typedef pair <K* const, T*>                    value_type;
  119.           typedef pair <K* const, T*>&                   reference;
  120.           typedef const pair <K* const, T*>&             const_reference;
  121.           typedef K*                                     value_type_key;
  122.           typedef T*                                     value_type_data;
  123.           typedef K*&                                    reference_key;
  124.           typedef T*&                                    reference_data;
  125.           typedef const K*const&                   const_reference_key;
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  137.  
  138.  
  139.  
  140.           typedef const T*const&                   const_reference_data;
  141.  
  142.  
  143.  
  144. PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
  145.               RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>
  146.           (const container_comp& comp = container_comp());
  147.  
  148.  
  149.      Constructs an empty map with comparator ccccoooommmmpppp.
  150.  
  151.               RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>(const RWTPtrMap<K,T,C>& rwm);
  152.  
  153.  
  154.      Copy constructor.
  155.  
  156.               RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>(const container_type& m);
  157.  
  158.  
  159.      Constructs a map by copying all elements from mmmm.
  160.  
  161.               RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>
  162.           (value_type* first,value_type* last,
  163.            const container_comp& comp = container_comp());
  164.  
  165.  
  166.      Constructs a map by copying elements from the array of ppppaaaaiiiirrrrs pointed to
  167.      by ffffiiiirrrrsssstttt, up to, but not including, the pair pointed to by llllaaaasssstttt.
  168.  
  169. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrrssss
  170.               RWTPtrMap<K,T,C>&
  171.           ooooppppeeeerrrraaaattttoooorrrr====(const RWTPtrMap<K,T,C>& m);
  172.           RWTPtrMap<K,T,C>&
  173.           ooooppppeeeerrrraaaattttoooorrrr====(const container_type& m);
  174.  
  175.  
  176.      Destroys all associations in self and replaces them by copying all
  177.      associations from mmmm.
  178.  
  179.               bool
  180.           ooooppppeeeerrrraaaattttoooorrrr<<<<(const RWTPtrMap<K,T,C>& m) const;
  181.  
  182.  
  183.      Returns ttttrrrruuuueeee if self compares lexicographically less than mmmm, otherwise
  184.      returns ffffaaaallllsssseeee.  Keys in each collection are dereferenced before being
  185.      compared.  Assumes that type KKKK has well-defined less-than semantics.
  186.  
  187.               bool
  188.           ooooppppeeeerrrraaaattttoooorrrr========(const RWTPtrMap<K,T,C>& m) const;
  189.  
  190.  
  191.      Returns ttttrrrruuuueeee if self compares equal to mmmm, otherwise returns ffffaaaallllsssseeee.  Two
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  203.  
  204.  
  205.  
  206.      collections are equal if both have the same number of entries, and
  207.      iterating through both collections produces, in turn, individual keys
  208.      that compare equal to each other.  Keys are dereferenced before being
  209.      compared.
  210.  
  211.               T*&
  212.           ooooppppeeeerrrraaaattttoooorrrr[[[[]]]](const K* key);
  213.  
  214.  
  215.      Looks up kkkkeeeeyyyy and returns a reference to its associated item.  If the key
  216.      is not in the dictionary, then it will be added with an associated
  217.      uninitialized pointer of type TTTT****. Because of this, if there is a
  218.      possibility that a key will not be in the dictionary, then this operator
  219.      should only be used as an lvalue.
  220.  
  221. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  222.               void
  223.           aaaappppppppllllyyyy(void (*fn)(const K*,T*&,void*),void* d);
  224.           void
  225.           aaaappppppppllllyyyy(void (*fn)(const K*,const T*,void*),void* d) const;
  226.  
  227.  
  228.      Applies the user-defined function pointed to by ffffnnnn to every association
  229.      in the collection.  This function must have one of the prototypes:
  230.  
  231.               void yourfun(const K* key, T*& a, void* d);
  232.  
  233.  
  234.  
  235.               void yourfun(const K* key, const T* a, void* d);
  236.  
  237.  
  238.      Client data may be passed through parameter dddd.
  239.  
  240.               void
  241.           aaaappppppppllllyyyyTTTTooooKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(void (*fn)(const K*,T*&,void*),void* d);
  242.           void
  243.           aaaappppppppllllyyyyTTTTooooKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee
  244.           (void (*fn)(const K*,const T*,void*),void* d) const;
  245.  
  246.  
  247.      This is a deprecated version of the aaaappppppppllllyyyy member above.  It behaves
  248.      exactly the same as aaaappppppppllllyyyy.
  249.  
  250.               iterator
  251.           bbbbeeeeggggiiiinnnn();
  252.  
  253.  
  254.  
  255.               const_iterator
  256.           bbbbeeeeggggiiiinnnn() const;
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  269.  
  270.  
  271.  
  272.      Returns an iterator positioned at the first pair in self.
  273.  
  274.               void
  275.           cccclllleeeeaaaarrrr();
  276.  
  277.  
  278.      Clears the collection by removing all items from self.
  279.  
  280.               void
  281.           cccclllleeeeaaaarrrrAAAAnnnnddddDDDDeeeessssttttrrrrooooyyyy();
  282.  
  283.  
  284.      Removes all associations from the collection and uses ooooppppeeeerrrraaaattttoooorrrr ddddeeeelllleeeetttteeee to
  285.      destroy the objects pointed to by the keys and their associated items.
  286.      Do not use this method if multiple pointers to the same object are
  287.      stored.  (This could happen even if keys all compare different, since
  288.      items are not considered during comparison.)
  289.  
  290.               bool
  291.           ccccoooonnnnttttaaaaiiiinnnnssss(const K* key) const;
  292.  
  293.  
  294.      Returns ttttrrrruuuueeee if there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy,
  295.      otherwise returns ffffaaaallllsssseeee.
  296.  
  297.               bool
  298.           ccccoooonnnnttttaaaaiiiinnnnssss(bool (*fn)(value_type,void*), void* d) const;
  299.  
  300.  
  301.      Returns ttttrrrruuuueeee if there exists an association a in self such that the
  302.      expression ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee, otherwise returns ffffaaaallllsssseeee.  ffffnnnn points to a
  303.      user-defined tester function which must have prototype:
  304.  
  305.                  bbbboooooooollll yyyyoooouuuurrrrTTTTeeeesssstttteeeerrrr((((vvvvaaaalllluuuueeee____ttttyyyyppppeeee aaaa,,,, vvvvooooiiiidddd**** dddd))));;;;
  306.  
  307.  
  308.      Client data may be passed through parameter dddd.
  309.  
  310.               iterator
  311.           eeeennnndddd();
  312.  
  313.  
  314.  
  315.               const_iterator
  316.           eeeennnndddd() const;
  317.  
  318.  
  319.      Returns an iterator positioned "just past" the last association in self.
  320.  
  321.               size_type
  322.           eeeennnnttttrrrriiiieeeessss() const;
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  335.  
  336.  
  337.  
  338.      Returns the number of associations in self.
  339.  
  340.               const K*
  341.           ffffiiiinnnndddd(const K* key) const;
  342.  
  343.  
  344.      If there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy,  then jjjj is
  345.      returned.  Otherwise, returns rrrrwwwwnnnniiiillll.
  346.  
  347.               value_type
  348.           ffffiiiinnnndddd(bool (*fn)(value_type,void*), void* d) const;
  349.  
  350.  
  351.      If there exists an association aaaa in self such that the expression
  352.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee, then returns aaaa.  Otherwise, returns
  353.      ppppaaaaiiiirrrr<<<<rrrrwwwwnnnniiiillll,,,,rrrrwwwwnnnniiiillll>>>>.  ffffnnnn points to a user-defined tester function which
  354.      must have prototype:
  355.  
  356.                  bbbboooooooollll yyyyoooouuuurrrrTTTTeeeesssstttteeeerrrr((((vvvvaaaalllluuuueeee____ttttyyyyppppeeee aaaa,,,, vvvvooooiiiidddd**** dddd))));;;;
  357.  
  358.  
  359.      Client data may be passed through parameter dddd.
  360.  
  361.               T*
  362.           ffffiiiinnnnddddVVVVaaaalllluuuueeee(const K* key);
  363.  
  364.  
  365.  
  366.               const T*
  367.           ffffiiiinnnnddddVVVVaaaalllluuuueeee(const K* key) const;
  368.  
  369.  
  370.      If there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy, returns the
  371.      item associated with jjjj.  Otherwise, returns rrrrwwwwnnnniiiillll.
  372.  
  373.               const K*
  374.           ffffiiiinnnnddddKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(const K* key, T*& tr);
  375.  
  376.  
  377.  
  378.               const K*
  379.           ffffiiiinnnnddddKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(const K* key, const T*& tr) const;
  380.  
  381.  
  382.      If there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy, assigns the
  383.      item associated with jjjj to trrrr,,,, and returns jjjj.  Otherwise, returns rrrrwwwwnnnniiiillll
  384.      and leaves the value of ttttrrrr unchanged.
  385.  
  386.               bool
  387.           iiiinnnnsssseeeerrrrtttt(K* key, T* a);
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  401.  
  402.  
  403.  
  404.      Adds kkkkeeeeyyyy with associated item aaaa to the collection.  Returns ttttrrrruuuueeee if the
  405.      insertion is successful, otherwise returns ffffaaaallllsssseeee.  The function will
  406.      return ttttrrrruuuueeee unless the collection already holds an association with the
  407.      equivalent key.
  408.  
  409.               bool
  410.           iiiinnnnsssseeeerrrrttttKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(K* key, T* a);
  411.  
  412.  
  413.      This is a deprecated version of the iiiinnnnsssseeeerrrrtttt member above.  It behaves
  414.      exactly the same as iiiinnnnsssseeeerrrrtttt.
  415.  
  416.               bool
  417.           iiiissssEEEEmmmmppppttttyyyy() const;
  418.  
  419.  
  420.      Returns ttttrrrruuuueeee if there are no items in the collection, ffffaaaallllsssseeee otherwise.
  421.  
  422.               size_type
  423.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff(const K* key) const;
  424.  
  425.  
  426.      Returns the number of keys jjjj in self that compare equal to ****kkkkeeeeyyyy.
  427.  
  428.               size_type
  429.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff
  430.           (bool (*fn)(value_type,void*), void* d) const;
  431.  
  432.  
  433.      Returns the number of associations aaaa in self such that the
  434.      expression((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee.  ffffnnnn points to a user-defined tester
  435.      function which must have prototype:
  436.  
  437.                       bbbboooooooollll yyyyoooouuuurrrrTTTTeeeesssstttteeeerrrr((((vvvvaaaalllluuuueeee____ttttyyyyppppeeee aaaa,,,, vvvvooooiiiidddd**** dddd))));;;;
  438.  
  439.  
  440.      Client data may be passed through parameter dddd.
  441.  
  442.               K*
  443.           rrrreeeemmmmoooovvvveeee(const K* key);
  444.  
  445.  
  446.      Removes the first association with key jjjj in self that compare euqal to
  447.      ****kkkkeeeeyyyy and returns jjjj.  Returns rrrrwwwwnnnniiiillll if there is no such association.
  448.  
  449.               K*
  450.           rrrreeeemmmmoooovvvveeee(bool (*fn)(value_type,void*), void* d);
  451.  
  452.  
  453.      Removes the first association aaaa in self such that the expression
  454.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee and returns its key.  Returns rrrrwwwwnnnniiiillll if there is no
  455.      such association.  ffffnnnn points to a user-defined tester function which must
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  467.  
  468.  
  469.  
  470.      have prototype:
  471.  
  472.                  bbbboooooooollll yyyyoooouuuurrrrTTTTeeeesssstttteeeerrrr((((vvvvaaaalllluuuueeee____ttttyyyyppppeeee aaaa,,,, vvvvooooiiiidddd**** dddd))));;;;
  473.  
  474.  
  475.      Client data may be passed through parameter dddd.
  476.  
  477.               size_type
  478.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(const K* key);
  479.  
  480.  
  481.      Removes all associations with key jjjj in self that compare equal to ****kkkkeeeeyyyy.
  482.      Returns the number of associations removed.
  483.  
  484.               size_type
  485.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(bool (*fn)(value_type,void*), void* d);
  486.  
  487.  
  488.      Removes all associations aaaa in self such that the expression
  489.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd))))))))is ttttrrrruuuueeee.  Returns the number removed.  ffffnnnn points to a user-
  490.      defined tester function which must have prototype:
  491.  
  492.                  bbbboooooooollll yyyyoooouuuurrrrTTTTeeeesssstttteeeerrrr((((vvvvaaaalllluuuueeee____ttttyyyyppppeeee aaaa,,,, vvvvooooiiiidddd**** dddd))));;;;
  493.  
  494.  
  495.      Client data may be passed through parameter dddd.
  496.  
  497.               container_type
  498.           ssssttttdddd();
  499.           const container_type
  500.           ssssttttdddd() const;
  501.  
  502.  
  503.      Returns a reference to the underlying C++-standard collection that serves
  504.      as the implementation for self.
  505.  
  506. RRRReeeellllaaaatttteeeedddd GGGGlllloooobbbbaaaallll OOOOppppeeeerrrraaaattttiiiioooonnnnssss
  507.               RWvostream&
  508.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWvostream& strm, const RWTPtrMap<K,T,C>& coll);
  509.           RWFile&
  510.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWFile& strm, const RWTPtrMap<K,T,C>& coll);
  511.  
  512.  
  513.      Saves the collection ccccoooollllllll onto the output stream ssssttttrrrrmmmm, or a reference to
  514.      it if it has already been saved.
  515.  
  516.               RWvistream&
  517.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTPtrMap<K,T,C>& coll);
  518.           RWFile&
  519.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTPtrMap<K,T,C>& coll);
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))                                                RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp((((3333CCCC++++++++))))
  533.  
  534.  
  535.  
  536.      Restores the contents of the collection ccccoooollllllll from the input stream ssssttttrrrrmmmm.
  537.  
  538.               RWvistream&
  539.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTPtrMap<K,T,C>*& p);
  540.           RWFile&
  541.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTPtrMap<K,T,C>*& p);
  542.  
  543.  
  544.      Looks at the next object on the input stream ssssttttrrrrmmmm and either creates a
  545.      new collection off the heap and sets pppp to point to it, or sets pppp to point
  546.      to a previously read instance.  If a collection is created off the heap,
  547.      then you are responsible for deleting it.
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.